require('../css/commonCss/normalize.css')
require('../css/commonCss/basic.css')
require('../css/commonCss/property.css')
require('../css/commonCss/reset.css')
require('../liabs/iconfont/iconfont.css')
require('../css/commonCss/footer.less')
require('../css/ride.less')

const axios = require('axios')

//导入util
const util = require('../util/util')


// 创建地图
var map = new AMap.Map('map', {
    zoom: 10,// 级别
    center: [108, 29.35],// 经纬度 中心点坐标
    viewMode: '3D'//使用3D视图
});


/* //定义变量保存当前点击的索引
let index = 0

let footLi = document.querySelectorAll('.foot li')

footLi.forEach(function (dom, i) {
    dom.addEventListener('click', function () {
        footLi[index].classList.remove('active')
        this.classList.add('active')
        index = i;
        console.log(i)
    })
})
 */

//底部导航
util.fixBottomNav('run')

//顶部导航
util.sportTopNav('ride')